using System;
using System.Collections.Generic;
using Needle.Bus.Messages;

namespace Needle.Bus
{
    /// <summary>
    ///  Defines a message handler
    /// </summary>
    public interface IMessageHandler : IDisposable
    {
        void Initialize();
        
        void Process(IMessage message);
        
        void Process(IList<IMessage> messages);

    }
}
